package com.woyou.ui.activity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import com.citaq.ideliver.R;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 * 我要开店	OpenShopFragment
 * @author tanglc
 */
@EActivity(R.layout.fm_openshops)
public class OpenShopActivity extends BaseActivity {
	
	//头部标题
	@ViewById
	TextView head_title;
	@ViewById//退出
	RelativeLayout myback;
	@ViewById//提交问题
	LinearLayout submitproblem;
	
	
	@AfterViews
	public void init() {
		// 初始化数据
		initView();
	}
	
	//退出、APP问题、服务问题、推荐店铺、我要开店
	@Click({R.id.myback})
	void OnClick(View view)
	{
		switch (view.getId()) {
		case R.id.myback:
			//退出意见反馈界面
//			clazz = OpenShopFragment_.class;
//			BusProvider.getInstance().post(closeSetUpFM());
			finish();
			break;
		case R.id.submitproblem:
			//退出服务问题界面
//			hideSoftInput(mActivity, shopname);
//			clazz = SendShopFragment_.class;
//			BusProvider.getInstance().post(closeSetUpFM());
			finish();
			break;
		default:
			break;
		}
	}
	Class clazz;
//	@Produce
//	public EventCloseFM closeSetUpFM() {
//		return new EventCloseFM(clazz, null);
//	}
//	@Produce public EventOpenFM<Class, FmInfoBean> openFM(){
//		return new EventOpenFM<Class, FmInfoBean>(clazz, null);
//	}
	public void initView()
	{
		head_title.setText("我要开店");
		submitproblem.setVisibility(View.VISIBLE);
//		submittext.setText("提交申请");
	}

	@Override
	public boolean backOperate() {
		// TODO Auto-generated method stub
		return false;
	}

}
